import request from "@/utils/request";

const BASE_URL = "/api/v1";

const pointsApi = {
  getList(data: any) {
    return request({
      url: `${BASE_URL}/points/billPage`,
      method: "post",
      data,
    });
  },
  getPoints(type: any) {
    return request({
      url: `${BASE_URL}/points/sourceBill?type=${type}`,
      method: "get",
    });
  },
};

export default pointsApi;
